<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::group(['middleware' => 'auth:web'], function () {
    Route::get('/','IndexController@index')   ->name('home.index.index');
    Route::get('/report','IndexController@report')   ->name('home.index.report');
    Route::get('/write','IndexController@write')   ->name('home.index.write');
    Route::post('/update','IndexController@update')   ->name('home.index.update');
});

Route::get('/login','LoginController@index')   ->name('home.login.index');
Route::post('register',  'LoginController@register')  ->name('home.login.register');
Route::get('/logout','LoginController@logout')   ->name('home.login.logout');
